chore(lint): generate content-collections before tsc/lint#896
chore(lint): generate content-collections before tsc/lint#896tannerlinsley merged 1 commit intomainfrom
Conversation
Adds a `content:build` script and `pretest` hook so `pnpm test` works from a fresh clone. The `.content-collections/generated/` folder is otherwise only produced by Vite during dev/build, leaving standalone tsc and lint runs unable to resolve the `content-collections` module.
❌ Deploy Preview for tanstack failed. Why did it fail? →
|
1 similar comment
❌ Deploy Preview for tanstack failed. Why did it fail? →
|
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughA new build script for content collections is added to ChangesContent Collections Build Setup
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Poem
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Comment |
Summary
content:buildscript that runs the@content-collections/corebuilder, plus apretesthook sopnpm testregenerates.content-collections/generated/before runningtscandlint.content-collectionsmodule (only Vite's dev/build pipeline generates that folder), surfacing as TS2307 and downstream implicit-any errors insrc/utils/blog.tsandsrc/utils/blog.functions.ts.Test plan
pnpm lintpasses (0 errors)pnpm test(tsc + lint) passes from a clean state with.content-collections/deletedSummary by CodeRabbit
Chores